package com.study.spring_aop_log.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2022-05-18 17:16:27
 */
@Data
@TableName("log")
@ApiModel(value = "Log对象", description = "")
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单号")
    @TableField("order_sn")
    private String orderSn;

    @ApiModelProperty("用户id")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("操作 0下单 1取消  2退货")
    @TableField("operation")
    private Integer operation;

    @ApiModelProperty("取消 退货 原因")
    @TableField("msg")
    private String msg;


    public static final String COL_ID = "id";

    public static final String COL_ORDER_SN = "order_sn";

    public static final String COL_UID = "uid";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_OPERATION = "operation";

    public static final String COL_MSG = "msg";

}
